<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8" />
		<title></title>
		<link rel="stylesheet" type="text/css" href="css/style.css"/>
	</head>
	<body>
		<div class="nav">
			<div>
				<a href=""><img src="img/logo.png"/></a>
				<div class="navBar">
					<a href="contact.html">联系我们</a>
					<a href="cases.html">经典案例</a>
					<a href="tuandui.html">专业团队</a>
					<a href="index.html">主页</a>
				</div>
			</div>
		</div>
		<div class="banner">
			<img src="img/banner_wen.png" alt="">
		</div>
		<img class="desc" src="img/desc.png" alt="">
		<div class="tuandui">
			<div style="width: 1200px;margin: 0 auto;">
				<div class="title">
					<img src="img/td_title.png" alt="">
					<a class="more" href="tuandui.html" title="">more></a>
				</div>

				<div style="padding: 0 56px;">
					<span class="pre"><img src="img/pre.png" alt=""></span>
					<div class="lawyers">
						<ul>
							<li>
								<span><img src="img/1.jpg" alt=""></span>
								<div style="line-height: 40px;text-align: center;">姓名</div>
							</li>
							<li>
								<span><img src="img/1.jpg" alt=""></span>
								<div style="line-height: 40px;text-align: center;">姓名</div>
							</li>
							<li>
								<span><img src="img/1.jpg" alt=""></span>
								<div style="line-height: 40px;text-align: center;">姓名</div>
							</li>
							<li>
								<span><img src="img/1.jpg" alt=""></span>
								<div style="line-height: 40px;text-align: center;">姓名</div>
							</li>
							<li>
								<span><img src="img/1.jpg" alt=""></span>
								<div style="line-height: 40px;text-align: center;">姓名</div>
							</li>
							<li>
								<span><img src="img/1.jpg" alt=""></span>
								<div style="line-height: 40px;text-align: center;">姓名</div>
							</li>
							<li>
								<span><img src="img/1.jpg" alt=""></span>
								<div style="line-height: 40px;text-align: center;">姓名</div>
							</li>
							<li>
								<span><img src="img/1.jpg" alt=""></span>
								<div style="line-height: 40px;text-align: center;">姓名</div>
							</li>
						</ul>
					</div>
					<span class="next"><img src="img/next.png" alt=""></span>
					<div style="clear: both;"></div>
				</div>
			</div>
		</div>
		<div class="cases">
			<div style="width: 1200px;margin: 0 auto;height: 445px;">
				<div class="title">
					<img src="img/case_title.png" alt="">
					<a class="more" href="cases.html" title="">more></a>
				</div>
				<ul class="case_list">
					<li>
						<span><img src="img/1.jpg" alt=""></span>
						<div style="padding: 0 15px;box-sizing: border-box;width: 200px;text-align: center;line-height: 40px;">
							<div style="border-bottom: 1px solid #666;">2017-08-24</div>
							<div style="width: 100%;overflow: hidden;text-overflow: ellipsis;white-space: nowrap;">士大夫但是开发建设肯定就是考了几分</div>
						</div>
					</li>
					<li>
						<span><img src="img/1.jpg" alt=""></span>
						<div style="padding: 0 15px;box-sizing: border-box;width: 200px;text-align: center;line-height: 40px;">
							<div style="border-bottom: 1px solid #666;">2017-08-24</div>
							<div style="width: 100%;overflow: hidden;text-overflow: ellipsis;white-space: nowrap;">士大夫但是开发建设肯定就是考了几分</div>
						</div>
					</li>
					<li>
						<span><img src="img/1.jpg" alt=""></span>
						<div style="padding: 0 15px;box-sizing: border-box;width: 200px;text-align: center;line-height: 40px;">
							<div style="border-bottom: 1px solid #666;">2017-08-24</div>
							<div style="width: 100%;overflow: hidden;text-overflow: ellipsis;white-space: nowrap;">士大夫但是开发建设肯定就是考了几分</div>
						</div>
					</li>
					<li>
						<span><img src="img/1.jpg" alt=""></span>
						<div style="padding: 0 15px;box-sizing: border-box;width: 200px;text-align: center;line-height: 40px;">
							<div style="border-bottom: 1px solid #666;">2017-08-24</div>
							<div style="width: 100%;overflow: hidden;text-overflow: ellipsis;white-space: nowrap;">士大夫但是开发建设肯定就是考了几分</div>
						</div>
					</li>
					<li>
						<span><img src="img/1.jpg" alt=""></span>
						<div style="padding: 0 15px;box-sizing: border-box;width: 200px;text-align: center;line-height: 40px;">
							<div style="border-bottom: 1px solid #666;">2017-08-24</div>
							<div style="width: 100%;overflow: hidden;text-overflow: ellipsis;white-space: nowrap;">士大夫但是开发建设肯定就是考了几分</div>
						</div>
					</li>
					<div style="clear: both;"></div>
				</ul>
			</div>
			
		</div>
		<img style="width: 100%;min-width: 1200px;" src="img/bottom.png" alt="">
		<script type="text/javascript" src="js/jquery.min.js"></script>
		<script src="js/common.js" type="text/javascript" charset="utf-8"></script>
		<script type="text/javascript">
			$(document).ready(function() {
				var winHeight = $(window).height()
				$('.banner').height(winHeight - 52);

				$(window).on('resize',function(){
					var winHeight = $(window).height()
					$('.banner').height(winHeight - 52);
				})

				var len = $('.lawyers li').length;
				$('.lawyers ul').width(len * 248)

				var j = 1;
				$('.next').click(function(){
					var l = parseInt($('.lawyers ul').css('left'));
					console.log(l)
					if (j < Math.ceil(len/4)) {
						j++;
						$('.lawyers ul').animate({'left': l - 992 + 'px'},500)
					}
				})
				
				$('.pre').click(function(){
					var l = parseInt($('.lawyers ul').css('left'));
					
					console.log(l)
					if (j > 1) {
						j--;
						$('.lawyers ul').animate({'left': l + 992 + 'px'},500)
					}
				})
				var params = {
					limit: 3, //记录数
					offset: 1 //页码
				};
				$.ajax({
					url: baseUrl + 'lawyer/list',
					type: 'get',
					data: params,
					dataType: "json",
					success: function(data) {
						console.log(data)
					}
				});

			});
		</script>
	</body>
</html>
